{% extends "netbase.html" %}

<img src="/media/nets/degree_histogram.png" alt="degree histogram">
<object data="/media/nets/degree_histogram.png" type="image/png" alt="degree histogram">

<div id="netstatbox">
{% block results %}
{# {%if locales()/ variables coming in from function call %} or don't I have to check for this? #}
<p>A network was generated{{ current_date }}.</p>
<ul class="">
<li>Diameter: {{d}}</li>
<li>Radius: {{r}}</li>
<li>Average shortest path length: {{asp}}</li>
<li>connected: {{conl}}</li>
<li>fsize: {{fsize}}</li>
<li>fname: {{fname}}</li>
<li></li>
<li>fread: {{fread}}</li>
</ul>
{# {%end if%} #}
{% endblock %}
</div>

{#from dotview.html; refactor to cull duplicate code, later?#}
<b>{{pname}} </b><br/>
<form action="/nets/netdisplay/" method="GET">
	<label><b>image format:</b></label>{{form.fformat}}<label><b> layout:</b></label>{{form.layout}}
     {# <label><b>Reaction Label:</b></label>{{form.rlabel}}<label><b>  Metabolite Label:</b></label>{{form.mlabel}}<br/> #}
	<input type="submit" name="igem" value="draw">
</form>
{% ifequal format "svg" %}
  <embed src="/nets/media/{{pname}}.svg" width="500" height="500" type="image/svg+xml" pluginspace="http://www.adobe.com/svg/viewer/install/" />
{% else %}
  <img src="/nets/media/{{pname}}.{{format}}" alt={{pname}} />
{% endifequal %}


</body>
</html>

